public class J04fuzhi {
    public static void main(String[] args) {
        int a = 2;
        //简写
        a += 3;  // a = a + 3
        System.out.println("a = " + a);

        int b = 6;
        b -= 4;
        System.out.println("b = " + b);//2

        b %= 10;
        System.out.println("b = " + b);//2

        int c = 23;
        c %= 5;// c = c % 5
        System.out.println("c = " + c);//3

        int m1 = 3;

        int m2 = 5;
        m2 += m1;
        System.out.println("m2 = " + m2);//8


        System.out.println("=====");
        short s1 = 2;
//        s1 = (short)(s1 + 6);
        // += 自带强转
        s1 += 6;//8
        System.out.println("s1 = " + s1);
    }
}
